export default class MyType{
  static isArray = (params: Array<any>)=>Object.prototype.toString.call(params).slice(8,-1) === 'Array'
  static isRegExp = (params: RegExp)=>Object.prototype.toString.call(params) === '[object RegExp]'
  static isObject = (params: any)=>Object.prototype.toString.call(params) === '[object Object]'
  static isDate = (params: Date)=>Object.prototype.toString.call(params) === '[object Date]'
}